import json


class SettingManager:
    def __init__(self):
        self.settings = {}
        self.load_settings()

    def load_settings(self):
        """加载配置文件"""
        with open("settings.json", "r", encoding="utf-8") as f:
            self.settings = json.load(f)

    def get_station_code(self):
        """获取工位号"""
        return self.settings["station_code"]


setting_manager = SettingManager()
